﻿@model TGBTech.Core.Models.ChungTu.Data

@{
    ViewBag.Title = "Edit";
}


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.Id)

        <div class="form-group">
            <label class="col-md-3 control-label">Số chứng từ</label>
            <div class="col-md-9">
                @Html.TextBoxFor(model => model.SoCT, new { @class = "form-control" })

            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Ngày chứng từ</label>
            <div class="col-md-9">
                @Html.TextBoxFor(model => model.NgayCT, new { @class = "form-control" })
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Tài khoản nợ</label>
            <div class="col-md-9">
                @Html.DropDownList("TaiKhoanNoId", null, new { @class = "form-control select2me" })
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Tài khoản có</label>
            <div class="col-md-9">
                @Html.DropDownList("TaiKhoanCoId", null, new { @class = "form-control select2me" })
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Diển giải nợ</label>
            <div class="col-md-9">
                @Html.TextBoxFor(model => model.DienGiaiNo, new { @class = "form-control" })
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Mã khách hàng</label>
            <div class="col-md-9">
                @Html.DropDownList("KhachHangId", null, new { @class = "form-control select2me" })
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Loại khách hàng</label>
            <div class="col-md-9">
                @Html.EditorFor(model => model.LoaiKH)
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Số tiền</label>
            <div class="col-md-9">
                @Html.TextBoxFor(model => model.SoTien, new { @class = "form-control" })
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Số hiệu</label>
            <div class="col-md-9">
                @Html.TextBoxFor(model => model.SoHieu, new { @class = "form-control" })
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Số hóa đơn</label>
            <div class="col-md-9">
                @Html.TextBoxFor(model => model.SoHoaDon, new { @class = "form-control" })
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Ngày hóa đơn</label>
            <div class="col-md-9">
                @Html.TextBoxFor(model => model.NgayHoaDon, new { @class = "form-control" })
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">Mặt hàng</label>
            <div class="col-md-9">
                @Html.TextBoxFor(model => model.DanhMuc, new { @class = "form-control" })
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-3 control-label">VAT</label>
            <div class="col-md-9">
                @Html.TextBoxFor(model => model.VAT, new { @class = "form-control" })
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-3 col-md-9">
                <input type="submit" value="Cập nhật" class="btn btn-default" />
            </div>
        </div>
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
